using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;


namespace GameForKids
{
 
    public class Brick : DrawableGameComponent
    {
        Texture2D Img;
        Vector2 position;
        Rectangle rect;

        public Rectangle BoundingRectangle()
        {
            return rect;
        }

        public Brick(Game game, Vector2 p) : base(game)
        {
            Img = this.Game.Content.Load<Texture2D>("Textures/PacManGame/brick");
            position = p;
            rect = Img.Bounds;
            rect.X = (int)position.X;
            rect.Y = (int)position.Y;
        }


        public override void Initialize()
        {

            base.Initialize();
        }

        public virtual void Draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(Img, rect, Color.White);
        }
    }
}
